All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.app.Application

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.app.Responder
                   |
                   +----com.apple.alpha.app.Application

public class Application
extends Responder
This class wraps the Objective-C class NSApplication.


Variable Index

 o ApplicationDidBecomeActiveNotification
 o ApplicationDidFinishLaunchingNotification
 o ApplicationDidHideNotification
 o ApplicationDidResignActiveNotification
 o ApplicationDidUnhideNotification
 o ApplicationDidUpdateNotification
 o ApplicationWillBecomeActiveNotification
 o ApplicationWillFinishLaunchingNotification
 o ApplicationWillHideNotification
 o ApplicationWillResignActiveNotification
 o ApplicationWillTerminateNotification
 o ApplicationWillUnhideNotification
 o ApplicationWillUpdateNotification
 o RunAbortedResponse
 o RunContinuesResponse
 o RunStoppedResponse

Constructor Index

 o Application()
This default constructor is equivalent to Objective-C's [[NSApplication alloc] init].
 o Application(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o Application(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

Method Index

 o abortModal()
A wrapper for the - abortModal Objective-C instance method.
 o activateContextHelpMode(Object)
A wrapper for the - activateContextHelpMode: Objective-C instance method.
 o activateIgnoringOtherApps(boolean)
A wrapper for the - activateIgnoringOtherApps: Objective-C instance method.
 o addWindowsItem(Window, String, boolean)
A wrapper for the - addWindowsItem:title:filename: Objective-C instance method.
 o applicationIconImage()
A wrapper for the - applicationIconImage Objective-C instance method.
 o arrangeInFront(Object)
A wrapper for the - arrangeInFront: Objective-C instance method.
 o beep()
A wrapper for the + beep Objective-C class method.
 o beginModalSessionForWindow(Window)
A wrapper for the - beginModalSessionForWindow: Objective-C instance method.
 o changeWindowsItem(Window, String, boolean)
A wrapper for the - changeWindowsItem:title:filename: Objective-C instance method.
 o context()
A wrapper for the - context Objective-C instance method.
 o currentEvent()
A wrapper for the - currentEvent Objective-C instance method.
 o deactivate()
A wrapper for the - deactivate Objective-C instance method.
 o delegate()
A wrapper for the - delegate Objective-C instance method.
 o discardEventsMatchingMask(int, Event)
A wrapper for the - discardEventsMatchingMask:beforeEvent: Objective-C instance method.
 o endModalSession(ModalSession)
A wrapper for the - endModalSession: Objective-C instance method.
 o finishLaunching()
A wrapper for the - finishLaunching Objective-C instance method.
 o hide(Object)
A wrapper for the - hide: Objective-C instance method.
 o isActive()
A wrapper for the - isActive Objective-C instance method.
 o isHidden()
A wrapper for the - isHidden Objective-C instance method.
 o isRunning()
A wrapper for the - isRunning Objective-C instance method.
 o keyWindow()
A wrapper for the - keyWindow Objective-C instance method.
 o loadNibFromBundle(Bundle, String, Object)
 o loadNibNamed(String, Object)
 o mainMenu()
A wrapper for the - mainMenu Objective-C instance method.
 o mainWindow()
A wrapper for the - mainWindow Objective-C instance method.
 o makeWindowsPerform(Selector, boolean)
A wrapper for the - makeWindowsPerform:inOrder: Objective-C instance method.
 o miniaturizeAll(Object)
A wrapper for the - miniaturizeAll: Objective-C instance method.
 o nextEventMatchingMaskInMode(int, Date, String, boolean)
A wrapper for the - nextEventMatchingMask:untilDate:inMode:dequeue: Objective-C instance method.
 o orderFrontColorPanel(Object)
A wrapper for the - orderFrontColorPanel: Objective-C instance method.
 o postEvent(Event, boolean)
A wrapper for the - postEvent:atStart: Objective-C instance method.
 o preventWindowOrdering()
A wrapper for the - preventWindowOrdering Objective-C instance method.
 o registerServicesMenuTypes(Array, Array)
A wrapper for the - registerServicesMenuSendTypes:returnTypes: Objective-C instance method.
 o removeWindowsItem(Window)
A wrapper for the - removeWindowsItem: Objective-C instance method.
 o reportException(Throwable)
A wrapper for the - reportException: Objective-C instance method.
 o run()
A wrapper for the - run Objective-C instance method.
 o runModalForWindow(Window)
A wrapper for the - runModalForWindow: Objective-C instance method.
 o runModalSession(ModalSession)
A wrapper for the - runModalSession: Objective-C instance method.
 o runPageLayout(Object)
A wrapper for the - runPageLayout: Objective-C instance method.
 o sendActionToTargetFromSender(Selector, Object, Object)
A wrapper for the - sendAction:to:from: Objective-C instance method.
 o sendEvent(Event)
A wrapper for the - sendEvent: Objective-C instance method.
 o servicesMenu()
A wrapper for the - servicesMenu Objective-C instance method.
 o servicesProvider()
A wrapper for the - servicesProvider Objective-C instance method.
 o setApplicationIconImage(Image)
A wrapper for the - setApplicationIconImage: Objective-C instance method.
 o setDelegate(Object)
A wrapper for the - setDelegate: Objective-C instance method.
 o setMainMenu(Menu)
A wrapper for the - setMainMenu: Objective-C instance method.
 o setServicesMenu(Menu)
A wrapper for the - setServicesMenu: Objective-C instance method.
 o setServicesProvider(Object)
A wrapper for the - setServicesProvider: Objective-C instance method.
 o setWindowsMenu(Menu)
A wrapper for the - setWindowsMenu: Objective-C instance method.
 o setWindowsNeedUpdate(boolean)
A wrapper for the - setWindowsNeedUpdate: Objective-C instance method.
 o sharedApplication()
A wrapper for the + sharedApplication Objective-C class method.
 o showHelp(Object)
A wrapper for the - showHelp: Objective-C instance method.
 o stop(Object)
A wrapper for the - stop: Objective-C instance method.
 o stopModal()
A wrapper for the - stopModal Objective-C instance method.
 o stopModalWithCode(int)
A wrapper for the - stopModalWithCode: Objective-C instance method.
 o targetForAction(Selector)
A wrapper for the - targetForAction: Objective-C instance method.
 o targetForActionToFrom(Selector, Object, Object)
A wrapper for the - targetForAction:to:from: Objective-C instance method.
 o terminate(Object)
A wrapper for the - terminate: Objective-C instance method.
 o tryToPerform(Selector, Object)
A wrapper for the - tryToPerform:with: Objective-C instance method.
 o unhide(Object)
A wrapper for the - unhide: Objective-C instance method.
 o unhideWithoutActivation()
A wrapper for the - unhideWithoutActivation Objective-C instance method.
 o updateWindows()
A wrapper for the - updateWindows Objective-C instance method.
 o updateWindowsItem(Window)
A wrapper for the - updateWindowsItem: Objective-C instance method.
 o validRequestorForTypes(String, String)
A wrapper for the - validRequestorForSendType:returnType: Objective-C instance method.
 o windows()
A wrapper for the - windows Objective-C instance method.
 o windowsMenu()
A wrapper for the - windowsMenu Objective-C instance method.
 o windowWithWindowNumber(int)
A wrapper for the - windowWithWindowNumber: Objective-C instance method.

Variables

 o ApplicationDidBecomeActiveNotification
 public static final String ApplicationDidBecomeActiveNotification
 o ApplicationDidHideNotification
 public static final String ApplicationDidHideNotification
 o ApplicationDidFinishLaunchingNotification
 public static final String ApplicationDidFinishLaunchingNotification
 o ApplicationDidResignActiveNotification
 public static final String ApplicationDidResignActiveNotification
 o ApplicationDidUnhideNotification
 public static final String ApplicationDidUnhideNotification
 o ApplicationDidUpdateNotification
 public static final String ApplicationDidUpdateNotification
 o ApplicationWillBecomeActiveNotification
 public static final String ApplicationWillBecomeActiveNotification
 o ApplicationWillHideNotification
 public static final String ApplicationWillHideNotification
 o ApplicationWillFinishLaunchingNotification
 public static final String ApplicationWillFinishLaunchingNotification
 o ApplicationWillResignActiveNotification
 public static final String ApplicationWillResignActiveNotification
 o ApplicationWillUnhideNotification
 public static final String ApplicationWillUnhideNotification
 o ApplicationWillUpdateNotification
 public static final String ApplicationWillUpdateNotification
 o ApplicationWillTerminateNotification
 public static final String ApplicationWillTerminateNotification
 o RunStoppedResponse
 public static final int RunStoppedResponse
 o RunAbortedResponse
 public static final int RunAbortedResponse
 o RunContinuesResponse
 public static final int RunContinuesResponse

Constructors

 o Application
 protected Application(boolean shouldAllocate,
                       int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o Application
 public Application()
This default constructor is equivalent to Objective-C's [[NSApplication alloc] init].

 o Application
 public Application(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

Methods

 o sharedApplication
 public static native Application sharedApplication()
A wrapper for the + sharedApplication Objective-C class method.

 o setDelegate
 public native void setDelegate(Object anObject)
A wrapper for the - setDelegate: Objective-C instance method.

 o delegate
 public native Object delegate()
A wrapper for the - delegate Objective-C instance method.

 o context
 public native DPSContext context()
A wrapper for the - context Objective-C instance method.

 o hide
 public native void hide(Object sender)
A wrapper for the - hide: Objective-C instance method.

 o unhide
 public native void unhide(Object sender)
A wrapper for the - unhide: Objective-C instance method.

 o unhideWithoutActivation
 public native void unhideWithoutActivation()
A wrapper for the - unhideWithoutActivation Objective-C instance method.

 o windowWithWindowNumber
 public native Window windowWithWindowNumber(int windowNum)
A wrapper for the - windowWithWindowNumber: Objective-C instance method.

 o mainWindow
 public native Window mainWindow()
A wrapper for the - mainWindow Objective-C instance method.

 o keyWindow
 public native Window keyWindow()
A wrapper for the - keyWindow Objective-C instance method.

 o isActive
 public native boolean isActive()
A wrapper for the - isActive Objective-C instance method.

 o isHidden
 public native boolean isHidden()
A wrapper for the - isHidden Objective-C instance method.

 o isRunning
 public native boolean isRunning()
A wrapper for the - isRunning Objective-C instance method.

 o deactivate
 public native void deactivate()
A wrapper for the - deactivate Objective-C instance method.

 o activateIgnoringOtherApps
 public native void activateIgnoringOtherApps(boolean flag)
A wrapper for the - activateIgnoringOtherApps: Objective-C instance method.

 o finishLaunching
 public native void finishLaunching()
A wrapper for the - finishLaunching Objective-C instance method.

 o run
 public native void run()
A wrapper for the - run Objective-C instance method.

 o runModalForWindow
 public native int runModalForWindow(Window theWindow)
A wrapper for the - runModalForWindow: Objective-C instance method.

 o stop
 public native void stop(Object sender)
A wrapper for the - stop: Objective-C instance method.

 o stopModal
 public native void stopModal()
A wrapper for the - stopModal Objective-C instance method.

 o stopModalWithCode
 public native void stopModalWithCode(int returnCode)
A wrapper for the - stopModalWithCode: Objective-C instance method.

 o abortModal
 public native void abortModal()
A wrapper for the - abortModal Objective-C instance method.

 o beginModalSessionForWindow
 public native ModalSession beginModalSessionForWindow(Window theWindow)
A wrapper for the - beginModalSessionForWindow: Objective-C instance method.

 o runModalSession
 public native int runModalSession(ModalSession session)
A wrapper for the - runModalSession: Objective-C instance method.

 o endModalSession
 public native void endModalSession(ModalSession session)
A wrapper for the - endModalSession: Objective-C instance method.

 o terminate
 public native void terminate(Object sender)
A wrapper for the - terminate: Objective-C instance method.

 o nextEventMatchingMaskInMode
 public native Event nextEventMatchingMaskInMode(int mask,
                                                 Date expiration,
                                                 String mode,
                                                 boolean deqFlag)
A wrapper for the - nextEventMatchingMask:untilDate:inMode:dequeue: Objective-C instance method.

 o discardEventsMatchingMask
 public native void discardEventsMatchingMask(int mask,
                                              Event lastEvent)
A wrapper for the - discardEventsMatchingMask:beforeEvent: Objective-C instance method.

 o postEvent
 public native void postEvent(Event event,
                              boolean flag)
A wrapper for the - postEvent:atStart: Objective-C instance method.

 o currentEvent
 public native Event currentEvent()
A wrapper for the - currentEvent Objective-C instance method.

 o sendEvent
 public native void sendEvent(Event theEvent)
A wrapper for the - sendEvent: Objective-C instance method.

 o preventWindowOrdering
 public native void preventWindowOrdering()
A wrapper for the - preventWindowOrdering Objective-C instance method.

 o makeWindowsPerform
 public native Window makeWindowsPerform(Selector aSelector,
                                         boolean flag)
A wrapper for the - makeWindowsPerform:inOrder: Objective-C instance method.

 o windows
 public native Array windows()
A wrapper for the - windows Objective-C instance method.

 o setWindowsNeedUpdate
 public native void setWindowsNeedUpdate(boolean needUpdate)
A wrapper for the - setWindowsNeedUpdate: Objective-C instance method.

 o updateWindows
 public native void updateWindows()
A wrapper for the - updateWindows Objective-C instance method.

 o setMainMenu
 public native void setMainMenu(Menu aMenu)
A wrapper for the - setMainMenu: Objective-C instance method.

 o mainMenu
 public native Menu mainMenu()
A wrapper for the - mainMenu Objective-C instance method.

 o setApplicationIconImage
 public native void setApplicationIconImage(Image image)
A wrapper for the - setApplicationIconImage: Objective-C instance method.

 o applicationIconImage
 public native Image applicationIconImage()
A wrapper for the - applicationIconImage Objective-C instance method.

 o sendActionToTargetFromSender
 public native boolean sendActionToTargetFromSender(Selector theAction,
                                                    Object theTarget,
                                                    Object sender)
A wrapper for the - sendAction:to:from: Objective-C instance method.

 o targetForAction
 public native Object targetForAction(Selector theAction)
A wrapper for the - targetForAction: Objective-C instance method.

 o targetForActionToFrom
 public native Object targetForActionToFrom(Selector theAction,
                                            Object theTarget,
                                            Object sender)
A wrapper for the - targetForAction:to:from: Objective-C instance method.

 o tryToPerform
 public native boolean tryToPerform(Selector anAction,
                                    Object anObject)
A wrapper for the - tryToPerform:with: Objective-C instance method.

Overrides:
tryToPerform in class Responder
 o validRequestorForTypes
 public native Object validRequestorForTypes(String sendType,
                                             String returnType)
A wrapper for the - validRequestorForSendType:returnType: Objective-C instance method.

Overrides:
validRequestorForTypes in class Responder
 o reportException
 public native void reportException(Throwable theException)
A wrapper for the - reportException: Objective-C instance method.

 o setWindowsMenu
 public native void setWindowsMenu(Menu aMenu)
A wrapper for the - setWindowsMenu: Objective-C instance method.

 o windowsMenu
 public native Menu windowsMenu()
A wrapper for the - windowsMenu Objective-C instance method.

 o arrangeInFront
 public native void arrangeInFront(Object sender)
A wrapper for the - arrangeInFront: Objective-C instance method.

 o removeWindowsItem
 public native void removeWindowsItem(Window win)
A wrapper for the - removeWindowsItem: Objective-C instance method.

 o addWindowsItem
 public native void addWindowsItem(Window win,
                                   String aString,
                                   boolean isFilename)
A wrapper for the - addWindowsItem:title:filename: Objective-C instance method.

 o changeWindowsItem
 public native void changeWindowsItem(Window win,
                                      String aString,
                                      boolean isFilename)
A wrapper for the - changeWindowsItem:title:filename: Objective-C instance method.

 o updateWindowsItem
 public native void updateWindowsItem(Window win)
A wrapper for the - updateWindowsItem: Objective-C instance method.

 o miniaturizeAll
 public native void miniaturizeAll(Object sender)
A wrapper for the - miniaturizeAll: Objective-C instance method.

 o setServicesMenu
 public native void setServicesMenu(Menu aMenu)
A wrapper for the - setServicesMenu: Objective-C instance method.

 o servicesMenu
 public native Menu servicesMenu()
A wrapper for the - servicesMenu Objective-C instance method.

 o registerServicesMenuTypes
 public native void registerServicesMenuTypes(Array sendTypes,
                                              Array returnTypes)
A wrapper for the - registerServicesMenuSendTypes:returnTypes: Objective-C instance method.

 o setServicesProvider
 public native void setServicesProvider(Object provider)
A wrapper for the - setServicesProvider: Objective-C instance method.

 o servicesProvider
 public native Object servicesProvider()
A wrapper for the - servicesProvider Objective-C instance method.

 o orderFrontColorPanel
 public native void orderFrontColorPanel(Object sender)
A wrapper for the - orderFrontColorPanel: Objective-C instance method.

 o activateContextHelpMode
 public native void activateContextHelpMode(Object sender)
A wrapper for the - activateContextHelpMode: Objective-C instance method.

 o showHelp
 public native void showHelp(Object sender)
A wrapper for the - showHelp: Objective-C instance method.

 o runPageLayout
 public native void runPageLayout(Object sender)
A wrapper for the - runPageLayout: Objective-C instance method.

 o beep
 public static native void beep()
A wrapper for the + beep Objective-C class method.

 o loadNibNamed
 public static native boolean loadNibNamed(String nibName,
                                           Object owner)
 o loadNibFromBundle
 public static native boolean loadNibFromBundle(Bundle bundle,
                                                String nibName,
                                                Object owner)

All Packages  Class Hierarchy  This Package  Previous  Next  Index